import './style.less'
import 'uno.css'
import 'nprogress/nprogress.css'
import 'ant-design-vue/dist/reset.css'

import { createApp } from 'vue'
import App from './App.vue'
import Antd from 'ant-design-vue'
import { setupStore } from './store'
import { setupRouter } from '@/router'
import { setupIcon } from '@/components/icon.ts'
import { startCheckUpdate } from '@/utils/version.ts'

async function bootstrap() {
  const app = createApp(App)
  app.use(Antd)
  setupStore(app)
  setupIcon(app)
  await setupRouter(app)

  app.mount('#app')
}

bootstrap().then(() => {
  startCheckUpdate()
  console.log('欢迎使用')
})
